* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    position: relative;
}

/* 顶部导航 */
.navbar {
    background-color: #387ef5;
    color: white;
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-title {
    font-size: 18px;
    font-weight: bold;
}

.navbar-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 页面容器 */
.page {
    display: none;
    padding-bottom: 60px; /* 为底部导航留出空间 */
}

.page.active {
    display: block;
}

/* 活动广场 */
.header {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.recruiting-tip {
    color: #f43f30;
    font-size: 14px;
}

.search-box {
    padding: 12px 16px;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.team-list {
    padding: 0 16px;
}

.team-item {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.school-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.team-info {
    flex: 1;
}

.school-name {
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.captain, .team-name {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 2px;
}

.member-count {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
}

.recruiting-status {
    background-color: #4cd964;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
}

/* 队伍创建页面 */
.batch-info {
    background-color: #f0f7ff;
    padding: 16px;
    margin-bottom: 16px;
}

.batch-title {
    font-weight: bold;
    font-size: 16px;
    color: #387ef5;
    display: block;
    margin-bottom: 8px;
}

.batch-detail {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.create-btn {
    background-color: #387ef5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
    cursor: pointer;
}

.tip {
    font-size: 12px;
    color: #f43f30;
}

.form-item {
    padding: 0 16px 16px;
}

.label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.note {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
}

.submit-btn {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 12px;
    background-color: #387ef5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.notes {
    padding: 0 16px;
}

.notes text {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

/* 我的队伍页面 */
.team-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.member-info {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-size: 14px;
    color: #999;
    display: block;
    margin-bottom: 12px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #eee;
    margin-bottom: 10px;
}

.name {
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.id, .college {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.call-btn {
    background-color: #387ef5;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
    cursor: pointer;
}

.member-list {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.member-item:last-child {
    border-bottom: none;
}

.member-item .avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    margin-bottom: 0;
}

.member-item .name {
    flex: 1;
    margin-bottom: 0;
}

.photo-section {
    padding: 16px;
}

.status {
    font-size: 14px;
    display: block;
    margin: 10px 0;
}

.upload-btn, .reupload-btn {
    color: #387ef5;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.reject-reason {
    color: #f43f30;
}

.photo-placeholder {
    font-size: 14px;
    color: #999;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 10px;
}

/* 照片上传页面 */
.rule {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    padding: 0 16px;
}

.upload-photo-container {
    padding: 16px;
}

.upload-btn-big {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #f5f5f5;
    color: #387ef5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
}

.remain-tip {
    font-size: 14px;
    color: #666;
    margin: 10px 16px;
    display: block;
}

.photo-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0 16px;
    margin-top: 16px;
}

.photo-item {
    width: 30%;
    margin-right: 5%;
    margin-bottom: 10px;
    position: relative;
}

.photo-item:nth-child(3n) {
    margin-right: 0;
}

.photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f43f30;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

/* 底部导航 */
.tabbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background-color: white;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    z-index: 99;
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    flex: 1;
    height: 100%;
    cursor: pointer;
}

.tabbar-item.active {
    color: #387ef5;
}

.tabbar-item icon {
    font-size: 20px;
    margin-bottom: 2px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 80%;
    max-width: 300px;
    padding: 20px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.modal-btn.cancel {
    background-color: #f5f5f5;
    color: #333;
}

.modal-btn.confirm {
    background-color: #387ef5;
    color: white;
}
